package com.example.helloworld.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController//@RestController 的意思就是 Controller 里面的方法都以 json 格式输出，不用再写什么 jackjson 配置的了！
public class HelloWorldController {
    @RequestMapping("/hello")
    public String index(HttpServletRequest request) {
        return "Hello World!!!!";
    }
}
